<template>
  <div class="content-item-wrapper">
    <div class="content">
      <div class="type" :style="{background: content.typeColor}">{{ content.typeName }}</div>
      <div ref="content" style="width: 78%;">
        <p class="title">{{ content.partTimeJobName }}</p>
        <p class="desc">{{ content.workIntro }}</p>
      </div>
    </div>
    <div class="bottom">
      <div style="width: 23%"><i class="fa fa-map-marker" aria-hidden="true"></i>{{ content.workLocation }}</div>
      <div style="width: 34.5%"><i class="fa fa-money" aria-hidden="true"></i>{{ content.salary }}</div>
      <div style="width: 17.5%"><i class="fa fa-leaf" aria-hidden="true"></i>{{ content.meansOfSalary }}</div>
      <div style="width: 25%"><i class="fa fa-clock-o" aria-hidden="true"></i>{{ content.publishTime }}</div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    content: {
      type: Object,
      default: {}
    }
  },
  data () {
    return {
    }
  }
}
</script>

<style lang="stylus" scoped>
@import '~assets/stylus/variable.styl';

.content-item-wrapper {
  background-color: #fff;
  padding: 10px 15px;
  text-align: left;
  word-break:break-all;

  .content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;

    .title {
      display: block;
      font-size: 16px;
      margin-bottom: 12px;
      font-weight: bold;
      color: $color-text-dark
    }

    .desc {
      font-size: 15px;
      color: $color-text;
      text-indent: 2em;
      line-height: 1.4rem;
    }

    .type {
      margin-top: 4px;
      width: 60px;
      height: 60px;
      border-radius: 30px;
      background: #f00
      text-align: center;
      line-height: 60px;
      color: #fff;
      font-size: 18px;
    }
  }

  .bottom {
    margin-top: 12px;
    color: $color-text-ll;
    font-size: 13px;
    display: flex;
    justify-content: flex-start;
    height: 13px;
    overflow: hidden;
    div {
      &:last-child {
        padding-right: 0;
      }
    }
    i {
      padding-right: 4px;
    }
  }
}
</style>


